﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DangNhap.aspx.cs" Inherits="HospitalManager.Site.DangNhap" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng nhập hệ thống</title>
    <!--Css-->
    <link href="/Templates/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <!--Javascript-->
    <script src="/Templates/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/Templates/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/Templates/js/bootbox.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            $("#<%=txtTaiKhoan.ClientID%>").focus();

            $("input:text, input:password").bind("keydown", function(e) {
                var n = $("input:text, input:password").length;
                if (e.which === 13) { //Enter key
                    e.preventDefault(); //Skip default behavior of the enter key
                    var nextIndex = $("input:text, input:password").index(this) + 1;
                    if (nextIndex < n) {
                        $("input:text, input:password")[nextIndex].focus();
                    } else {
                        $("input:text, input:password")[nextIndex - 1].blur();
                        $("#<%=btnDangNhap.ClientID %>").focus();
                    }
                }
            });
        });
    </script>
</head>
<body style="background: url(/Templates/images/banner.jpg) no-repeat center center #EAEAEA">
    <form id="form1" runat="server">
        <div class="panel panel-primary" style="margin: 0 auto; margin-top: 200px; max-width: 500px;">
            <div class="panel-heading" style="font-weight: bold; font-size: 25px; text-align: center;">
                HỆ THỐNG QUẢN LÝ BỆNH VIỆN
            </div>
            <div class="panel-body">
                <div class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Tài khoản</label>
                        <div class="col-sm-9">
                            <asp:TextBox ID="txtTaiKhoan" ClientIDMode="Static" runat="server" CssClass="form-control" placeholder="Tài khoản"></asp:TextBox>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            Mật khẩu</label>
                        <div class="col-sm-9">
                            <asp:TextBox ID="txtMatKhau" ClientIDMode="Static" runat="server" CssClass="form-control" placeholder="Mật khẩu" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="form-group" style="margin-bottom: 0;">
                        <div class="col-sm-offset-3 col-sm-9">
                            <asp:Button ID="btnDangNhap" runat="server" Text="Đăng nhập" class="btn btn-info"
                                OnClick="btnDangNhap_Click" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel-footer">
                <div class="form-horizontal">
                    <div class="form-group" style="margin-bottom: 0;">
                        <div class="col-sm-3">
                            <img src="/Templates/images/logo-bhxhhn.png" alt="..." class="img-thumbnail">
                        </div>
                        <div class="col-sm-9">
                            <p style="margin-bottom: 0;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ LBS VIỆT NAM</p>
                            <p style="margin-bottom: 0;">Điện thoại: 04.35.666.450 - Fax: 04.35.666.450</p>
                            <p style="margin-bottom: 0;">Số 12/19 Vương Thừa Vũ – Thanh Xuân Hà Nội</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
